package com.lagou.providera.service.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.lagou.service.HelloService;

@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String name, int timeToWait) {
        System.out.println("项目A->requestI=" + RpcContext.getContext().getAttachment("requestIP"));
        return "hello:"+name;
    }
}
